package com.test.base.dao;
import com.test.base.entity.NideshopOrderGoods;
import java.util.List;
import com.test.base.utils.Assist;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface NideshopOrderGoodsDao{
	/**
	 * 获得NideshopOrderGoods数据的总行数,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * @param assist
	 * @return
	 */
    long getNideshopOrderGoodsRowCount(Assist assist);
	/**
	 * 获得NideshopOrderGoods数据集合,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * @param assist
	 * @return
	 */
    List<NideshopOrderGoods> selectNideshopOrderGoods(Assist assist);
	/**
	 * 获得一个NideshopOrderGoods对象,以参数NideshopOrderGoods对象中不为空的属性作为条件进行查询
	 * @param obj
	 * @return
	 */
    NideshopOrderGoods selectNideshopOrderGoodsByObj(NideshopOrderGoods obj);
	/**
	 * 通过NideshopOrderGoods的id获得NideshopOrderGoods对象
	 * @param id
	 * @return
	 */
    NideshopOrderGoods selectNideshopOrderGoodsById(Object id);
	/**
	 * 插入NideshopOrderGoods到数据库,包括null值
	 * @param value
	 * @return
	 */
    int insertNideshopOrderGoods(NideshopOrderGoods value);
	/**
	 * 插入NideshopOrderGoods中属性值不为null的数据到数据库
	 * @param value
	 * @return
	 */
    int insertNonEmptyNideshopOrderGoods(NideshopOrderGoods value);
	/**
	 * 通过NideshopOrderGoods的id删除NideshopOrderGoods
	 * @param id
	 * @return
	 */
    int deleteNideshopOrderGoodsById(Object id);
	/**
	 * 通过辅助工具Assist的条件删除NideshopOrderGoods
	 * @param assist
	 * @return
	 */
    int deleteNideshopOrderGoods(Assist assist);
	/**
	 * 通过NideshopOrderGoods的id更新NideshopOrderGoods中的数据,包括null值
	 * @param enti
	 * @return
	 */
    int updateNideshopOrderGoodsById(NideshopOrderGoods enti);
 	/**
	 * 通过辅助工具Assist的条件更新NideshopOrderGoods中的数据,包括null值
	 * @param value
	 * @param assist
	 * @return
	 */
    int updateNideshopOrderGoods(@Param("enti") NideshopOrderGoods value, @Param("assist") Assist assist);
	/**
	 * 通过NideshopOrderGoods的id更新NideshopOrderGoods中属性不为null的数据
	 * @param enti
	 * @return
	 */
    int updateNonEmptyNideshopOrderGoodsById(NideshopOrderGoods enti);
 	/**
	 * 通过辅助工具Assist的条件更新NideshopOrderGoods中属性不为null的数据
	 * @param value
	 * @param assist
	 * @return
	 */
    int updateNonEmptyNideshopOrderGoods(@Param("enti") NideshopOrderGoods value, @Param("assist") Assist assist);
}